package com.chixing.day08_interface;

public class InterfaceDemo {
    public static void main(String[] args) {
        String s1 = "rmllo";
        String s2 = "rnll";
        int result = s1.compareTo(s2);
        System.out.println(result);


        Product product1 = new Product("杯子",900,5);
        Product product2 = new Product("手机",1000,900);
        int result2 = product1.compareTo(product2);
        System.out.println(result2);


    }
}
